<#--
List of variables to be passed for this template:
    - ProjectName: String containing the persistance unit name.
    - Classes
    - ConnectionURL
    - ConnectionDriverName

-->
<@pp.dropOutputFile />
<@pp.changeOutputFile name="/development/META-INF/persistence.xml" /><?xml version="1.0" encoding="UTF-8"?>

<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="Development-${ProjectName}" transaction-type="RESOURCE_LOCAL">
        <#list Classes as class >
        <class>${class}</class>
        </#list>

        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
        <properties>
            <property name="openjpa.Log" value="DefaultLevel=ERROR, Tool=ERROR"/>
            <property name="openjpa.ConnectionUserName" value=""/>
            <property name="openjpa.ConnectionPassword" value=""/>
            <property name="openjpa.ConnectionURL" value="${ConnectionURL}"/>
            <property name="openjpa.ConnectionDriverName" value="${ConnectionDriverName}"/>
        </properties>
    </persistence-unit>
</persistence>
